package com.myidis.entity;

import java.util.ArrayList;
import java.util.List;

///$Id: DIResult.cs 1701 2007-12-07 03:39:19Z zhangxun $
/// <summary>
/// <author>zhangxun</author>
/// <date>2007-8-16</date>
/// 扩散指数的返回结果
/// </summary>
public class DIResult
{
	private String Subject;
	private List<String> dates;
	private int count;
	private int springDay;
	private String startTime;
	private String endTime;
	private List<Double> dI;
	/// <summary>
	/// 扩散指数
	/// </summary>

	private List<Double> movingDI;
	/// <summary>
	/// 移动平均后的扩散指数
	/// </summary>

	private List<Double> cummunativeDI;
	/// <summary>
	/// 累积扩散指数
	/// </summary>

	/// <summary>
	/// 构造函数
	/// </summary>

	public DIResult(){
		this.dI = new ArrayList<Double>();
		this.movingDI = new ArrayList<Double>();
		this.cummunativeDI = new ArrayList<Double>();
	}

	public DIResult(String subject, List<String> dates, DIResult di, int spDay) {
		this.Subject = subject;
		this.dates = dates;
		this.dI = di.getdI();
		this.movingDI = di.getMovingDI();
		this.cummunativeDI = di.getCummunativeDI();
		this.count = dates.size();
		this.springDay = spDay;
		this.startTime = dates.get(0);
		this.endTime = dates.get(dates.size());
	}

	public String getSubject() {
		return Subject;
	}

	public void setSubject(String subject) {
		Subject = subject;
	}

	public List<String> getDates() {
		return dates;
	}

	public void setDates(List<String> dates) {
		this.dates = dates;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public List<Double> getdI() {
		return dI;
	}

	public void setdI(List<Double> dI) {
		this.dI = dI;
	}

	public List<Double> getMovingDI() {
		return movingDI;
	}

	public void setMovingDI(List<Double> movingDI) {
		this.movingDI = movingDI;
	}

	public List<Double> getCummunativeDI() {
		return cummunativeDI;
	}

	public void setCummunativeDI(List<Double> cummunativeDI) {
		this.cummunativeDI = cummunativeDI;
	}

	public int getSpringDay() {
		return springDay;
	}

	public void setSpringDay(int springDay) {
		this.springDay = springDay;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
}
